class Solution:
    def moveZeroes(self, nums: List[int]) -> None:
        """
        Do not return anything, modify nums in-place instead.
        """
        i, l = 0, len(nums)
        zeroNum = 0
        for j in range(l):
            if nums[j] != 0:
                nums[i] = nums[j]
                i = i + 1
            if nums[j] == 0:
                zeroNum += 1
        for n in range(zeroNum):
            nums[-(n+1)] = 0
        